package com.generic.range.demo2;

public class Test {

	static <POWER extends SuperHearing> void useSuperHearing(
			SuperHero<POWER> hero) {
		hero.getPower().hearSubtleNoises();
	}

	static <POWER extends SuperHearing & SuperSmell> void superFind(
			SuperHero<POWER> hero) {
		hero.getPower().hearSubtleNoises();
		hero.getPower().trackBySmell();
	}

	public static void main(String[] args) {
		DogBoy dogboy = new DogBoy();
		useSuperHearing(dogboy);
		superFind(dogboy);
	}

}
